var vue = require("vue");
var vue_router = require("vue-router");
var router_config = require("./src/router/webRouter.js");
var app = require("./src/views/user/app.vue");
vue.use(vue_router);
vue.use(require("vue-resource"));
var router = new vue_router({
	hashbang:false,
	transitionOnLoad:true
});
//过滤器
vue.filter('getdate', function (value){
	return new Date(parseInt(value)).toLocaleString().match(/\S+/)[0].replace(/\//g,'-');
});
vue.config.debug = true;
router_config(router);
router.start(app , "#app");
